PARAM([int]$PageSize,[int]$ImportLastCount)

$Roles = @("IT", "Helpdesk", "Support")
$MaxResult = 500

for ($i=$ImportLastCount; $i -le ($ImportLastCount+$PageSize-1) -and ($i -lt $MaxResult); $i++)
{
    $csObject = @{}
    $csObject.Add(".objectType","Person")
    $csObject.Add(".ObjectModificationType","Add")
    $csObject.Add("FirstName","PSTest$i")
    $csObject.Add("LastName","User$i")
    $csObject.Add("UniqueID","PSTest$i")
    $csObject.Add("Roles",$Roles)
    $csObject
}